#ifndef TOOLWIDGET_H
#define TOOLWIDGET_H

#include <QToolButton>
#include <QWidget>

namespace Ui {
class ToolWidget;
}

class ToolWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ToolWidget(QWidget *parent = nullptr);
    ~ToolWidget();
    void paintEvent(QPaintEvent *event) override; //重写绘制函数，让窗口圆角化

    QList<QToolButton *> getToolButtons();
private:
    Ui::ToolWidget *ui;

signals:
    void sonOfToolIsSelected(QString sonMode);
};

#endif // TOOLWIDGET_H
